#!/usr/bin/env python
# -*- coding: utf-8 -*-

from lxml import etree

fp = open('contacts.xml')

doc = etree.parse(fp).xpath('.//contact/LastName')
for lastnm in doc:
	print lastnm.text
fp.close()

